package com.nineclock.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nineclock.common.entity.PageResult;
import com.nineclock.model.pojo.SysCompanyUser;
import com.nineclock.model.pojo.SysRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("SELECT sr.role_name ,sf.title FROM sys_role sr,sys_role_function srf, sys_function sf WHERE  sr.id=srf.role_id and srf.function_id=sf.id")
    public List<Object> queryRoleFunction ();
}
